import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import axios from 'axios'
import VueClipboard from 'vue-clipboard2'
import router from "./router";
import store from "./store/index.js";
import VueI18n from 'vue-i18n';
import en from './locales/en.json';
import pt from './locales/pt.json';
import es from './locales/es.json';
import ar from './locales/ar.json';
import fa from './locales/fa.json';

Vue.config.productionTip = false;
Vue.use(VueClipboard)
Vue.use(ElementUI);
Vue.use(VueI18n);
const messages = {
    en,
    pt,
    es,
    ar,
    fa
};
const i18n = new VueI18n({
    locale: localStorage.getItem('language') || 'en', // 设置默认语言
    messages, // 设置语言包
});

new Vue({
    i18n,
    store,
    router,
	el: '#app',
	render: h => h(App)
});